import { createStore } from 'vuex'

export default createStore({
   state: {
      isLoading: false,
      asideShow: true,
      currentLoginUser: {}
   },
   mutations: {
      isLoading(state, loading) {
         state.isLoading = loading;
      },
      asideShow(state, show) {
         state.asideShow = show;
      },
      currentLoginUser(state, user) {
         state.currentLoginUser = user;
      }
   },
   actions: {

   },
})

